/**
 * @author zhouzhiheng98@foxmail.com 2020-07-17 17:22:52
 */
public class UnchangedString {
    public static void main(String[] args) {
        method();
    }

    public static void method() {
        String s = "hello";
        String t = s;
        s = "world";
        // t是"hello"还是"world"?
        System.out.println(t);
    }
}